﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Clmp.WebForm.CallBack
{
    /// <summary>
    ///CallBackHost 的摘要说明
    /// </summary>
    class CallBackHost : Control, ICallbackEventHandler
    {
        public CallBackHost()
        {

        }

        private string callbackResult = string.Empty;
        public CallBackManager.CallbackDelegate Callback { get; set; }

        #region ICallbackEventHandler 成员

        public string GetCallbackResult()
        {
            return callbackResult;
        }

        public void RaiseCallbackEvent(string eventArgument)
        {
            callbackResult = Callback(eventArgument);
        }

        #endregion
    }
}
